<?php
	$domain = $_SERVER ["SERVER_NAME"];
	$url = "http://{$domain}/mycms/index.php";
	$t = file_get_contents ( $url );
	
//	preg_match("/aid=(.*)/",$t,$match);
	
//	print_r($match);
	
	$t = str_replace("/aid=(.*)/","/aid=(.*)\.htm/",$t);
	
	echo $t;
?>